package com.tangcco.lockwell.domain;


import com.tangcco.lockwell.base.BasePage;

/**
 * 消息实体类
 * @author 王明哲
 *用于映射数据库中的message表
 */
public class Message {
    /** 自增Id */
    private Integer messageId;

    /** 用户外键用户表 */
    private Integer userId;
    //发帖人
    private String userName;

    /** 学科外键数据字典表 */
    private String subjectId;

    /** 时间 */
    private String time;

    /** 发布内容 */
    private String publishContent;

    /** 内容图片地址 */
    private String contentImageAddress;

    /** 分类（0 发布 1  回复） */
    private Integer classify;

    /** 所属（回复的谁 null代表是发布） */
    private String belongs;

    /** 点赞数 */
    private Integer likes;

    /** 回复人类型（用户  老师  AI） */
    private Integer status;

    /** 创建时间 */
    private String createTime;

    /** 修改时间 */
    private String modifyTime;

    private Integer replyCount;

    public Integer getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(Integer replyCount) {
        this.replyCount = replyCount;
    }

    @Override
    public String toString() {
        return "Message{" +
                "messageId=" + messageId +
                ", userId=" + userId +
                ", subjectId='" + subjectId + '\'' +
                ", time=" + time +
                ", publishContent='" + publishContent + '\'' +
                ", contentImageAddress='" + contentImageAddress + '\'' +
                ", classify=" + classify +
                ", belongs='" + belongs + '\'' +
                ", likes=" + likes +
                ", status=" + status +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }

    public Integer getMessageId() {
        return messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getPublishContent() {
        return publishContent;
    }

    public void setPublishContent(String publishContent) {
        this.publishContent = publishContent;
    }

    public String getContentImageAddress() {
        return contentImageAddress;
    }

    public void setContentImageAddress(String contentImageAddress) {
        this.contentImageAddress = contentImageAddress;
    }

    public Integer getClassify() {
        return classify;
    }

    public void setClassify(Integer classify) {
        this.classify = classify;
    }

    public String getBelongs() {
        return belongs;
    }

    public void setBelongs(String belongs) {
        this.belongs = belongs;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }



    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
